home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
FishMarket 1.0
/
FishMarket v1.0.iso
/
fishies
/
301-325
/
disk_313
/
uucp
/
uucp1.lzh
/
src
/
lib
/
validuser.c
< prev
Wrap
C/C++ Source or Header
|
1990-01-10
|
338b
|
25 lines
/*
* VALIDUSER.C
*
* (C) Copyright 1989-1990 by Matthew Dillon, All Rights Reserved.
*/
ValidUser(str)
char *str;
{
if (*str == '|' || *str == '@')
return(0);
while (*str) {
if (*str < 32 || *str > 126)
return(0);
if (*str == ':')
return(0);
if (*str == '/')
return(0);
++str;
}
return(1);
}